package Map_2;

import java.io.Serializable;

public class Member implements Serializable {
    private String name;
    private String ID;
    private String phoneNumber;
    private int integral;//积分
    private transient String password;//不可序列化
    private String cardtime;

    public Member() {
    }

    public Member(String name, String ID, String phoneNumber, int integral, String password,String cardtime) {
        this.name = name;
        this.ID = ID;
        this.phoneNumber = phoneNumber;
        this.integral = integral;
        this.password = password;
        this.cardtime=cardtime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public int getIntegral() {
        return integral;
    }

    public void setIntegral(int integral) {
        this.integral = integral;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getCardtime() {
        return cardtime;
    }

    public void setCardtime(String cardtime) {
        cardtime = cardtime;
    }


    @Override
    public String toString() {
        return "会员——>" +
                "会员姓名：" + name +" " +
                ",会员卡号：" + ID + " " +
                "会员电话号码：" + phoneNumber + " " +
                "会员积分：" + integral +"分\t"+
                "会员卡密码：" + password + " " +
                "会员开卡时间：" + cardtime ;
    }
}
